from utils.JSON的输入和输出 import 写入json, 读取json
'''
这是为了遇到未知的卡名 可以手动翻译
这里将unknown.json的数据放入了中文json中
'''

unknown = 读取json("output/4_res/unknown_name.json")
Name_Desc = 读取json("output/4_res/Name&Desc.json")

for item in unknown:
    Name_Desc[item['index']]['name']['zh'] = item['name']['zh']
    Name_Desc[item['index']]['desc_zh'] = item['desc_zh']

写入json(Name_Desc, "output/5_res/Name&Desc.json")
